<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
    <link rel="stylesheet" href="lib/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.css">
    <link rel="stylesheet" href="demos/css/demos.css">
    <link rel="stylesheet" href="font/fontscss/iconfont.css">
    <link rel="stylesheet" href="css/common.css">
    <style type="text/css">
        .jiben {
            height: 5.17rem;
            background-image: url("demos/images/my_bg.png");
            background-size: 7.5rem 5.17rem;
            overflow: hidden;
        }

        .headtile {
            float: left;
            padding: 14px 9px;
            border-radius: 50%;
        }

        .headtile img {
            border-radius: 50%;
            border: 2px solid #A9D8EF;
        }

        .nameinfo ul {
            list-style: none;
            font-size: 0.4rem;
            color: #fff;
            float: left;
            margin-top: 1rem;
        }
    </style>
</head>
<body>

<div class="jiben">
    <div class="headtile"><a href="personinfo.html"><img id="img"src="demos/images/1d.jpg" height="55" width="55"/></a></div>
    <div class="nameinfo">
        <ul>
            <li style="font-size: 14px;" id="username">未登录</li>
            <li id="departmentName"></li>
        </ul>
    </div>
</div>
<div class="weui-grids">
    <!--<a href="myproduct.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_button.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的产品
        </p>
    </a>
    <a href="mypouch.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_cell.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的荷包
        </p>
    </a>
    <a href="pouchrecord.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_cell.png" alt="">
        </div>
        <p class="weui-grid__label">
            提现记录
        </p>
    </a>
    <a href="mysq.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_button.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的资金申请
        </p>
    </a>
    <a href="myxfsq.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_button.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的应付授信申请
        </p>
    </a>
    <a href="mysp.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_cell.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的审批
        </p>
    </a>-->

    <!--<a href="myxfsp.html" class="weui-grid js_grid">
        <div class="weui-grid__icon">
            <img src="demos/images/icon_nav_cell.png" alt="">
        </div>
        <p class="weui-grid__label">
            我的应付授信审批
        </p>
    </a>-->
</div>
<div class="weui-tabbar">
   <!-- <a href="touzi.html" class="weui-tabbar__item ">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-wodedingdan"></i>
        </div>
        <p class="weui-tabbar__label">投资</p>
    </a>
    <a href="approve.html" class="weui-tabbar__item">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-edit"></i>
        </div>
        <p class="weui-tabbar__label">申请</p>
    </a>
    <a href="user.html" class="weui-tabbar__item iconcheck">
        <div class="weui-tabbar__icon">
            <i class="iconfont icon-account"></i>
        </div>
        <p class="weui-tabbar__label">我的</p>
    </a>-->
</div>
<script src="lib/jquery-2.1.4.js"></script>
<script src='js/jquery-weui.js'></script>
<script src="js/reg.js"></script>
<script src="js/web/user.js"></script>

<script>
    $(function(){
        $.ajax({
            type: "POST",
            url: "login/getUserInfo",
            async: false,
            data: {id:localStorage.getItem("token")},
            success: function (msg) {
               if(msg.touxiang!=""&&msg.touxiang!=null){
                   $("#img").attr("src","rzRelease/getimgurlcp?iurl="+msg.touxiang+"");

               }


            }
        })

        $.ajax({
            url: "user/getMenu",
            type: "post",
            async: "false",
            data: { userid: localStorage.getItem("token")},
            success: function (msg) {

                console.info(msg)

                var str="";
                $.each(msg,function(x,y){
                    if(y.id=="18"){//我的产品
                        str+= "<a href=\'myproduct.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "   我的产品"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="19"){//我的荷包
                        str+= "<a href=\'mypouch.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "    我的荷包"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="20"){//提现记录
                        str+= "<a href=\'pouchrecord.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "  提现记录"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="30"){//投资记录
                        str+= "<a href=\'tzRecord.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "  投资记录"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="21"){//我的资金申请
                        str+= "<a href=\'mysq.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "   我的资金申请"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="22"){//我的应付授信申请管理
                        str+= "<a href=\'myxfsq.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "   我的应付授信申请管理"
                        str+= "   </p>"
                        str+= "   </a>"
                    }else if(y.id=="23"){//我的审批
                        str+= "<a href=\'mysp.html\' class=\'weui-grid js_grid\'>"
                        str+= "  <div class=\'weui-grid__icon\'>"
                        str+= "   <img src=\'demos/images/icon_nav_button.png\' alt=\'\'>"
                        str+= "   </div>"
                        str+= "   <p class=\'weui-grid__label\'>"
                        str+= "  我的审批"
                        str+= "   </p>"
                        str+= "   </a>"
                    }

                });
                $(".weui-grids").append(str);
            }
        })
    })

</script>
<script src="js/web/checkLogin.js"></script>
</body>
</html>